package com.gexiaobao.pigeon.ui.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.gexiaobao.pigeon.R
import com.gexiaobao.pigeon.app.model.bean.PickUpDetailResponse

/**
 * @Author      : hxw
 * @Date        : 2023/3/8 15:06
 * @Describe    :
 */
class PickUpDetailAdapter : BaseQuickAdapter<PickUpDetailResponse.PostAdInfo, BaseViewHolder>(R.layout.item_pick_up_detail) {

    override fun convert(holder: BaseViewHolder, item: PickUpDetailResponse.PostAdInfo) {
        holder.setText(R.id.tv_order_number, (holder.layoutPosition + 1).toString())
        holder.setText(R.id.tv_pick_up_pigeon_address, item.address)
        holder.setText(R.id.tv_pick_up_pigeon_time, item.startTime + "-" + item.endTime)
    }
}